package com.ror.java.se.collection.set;

import java.util.TreeSet;

public class Demo04StudentTreeSet {
    public static void main(String[] args) {
        TreeSet<Student> stus = new TreeSet<>();
        stus.add(new Student("Zhang San", 23));
        stus.add(new Student("Li Si", 21));
        stus.add(new Student("Wang Wu", 22));
        System.out.println(stus);
    }
}
